//
//  footviewForsendvc.swift
//  Tinsecret_TW
//
//  Created by wanghui on 2018/11/1.
//  Copyright © 2018年 tst. All rights reserved.
//

import UIKit

protocol footviewForsendvcDelegate {
    func cancelAction()
    func sendAction()
}

class footviewForsendvc: UITableViewHeaderFooterView {
    var actionDelegate:footviewForsendvcDelegate?
    @IBOutlet weak var cancelBtn: UIButton!
    
    @IBOutlet weak var sendBtn: UIButton!
    override func awakeFromNib() {
        super.awakeFromNib()
        self.cancelBtn.addTarget(self, action: #selector(cancelAction), for: .touchUpInside)
        self.sendBtn.addTarget(self, action: #selector(sendAction), for: .touchUpInside)
    }
    
    @objc func cancelAction() {
        self.actionDelegate?.cancelAction()
    }
    
    @objc func sendAction() {
        self.actionDelegate?.sendAction()
    }
}
